﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ManWebRole.Models
{
    public class SectionModel
    {
        private SkySRMDBDataDataContext db = new SkySRMDBDataDataContext();

        public Section GetSectionById(int id)
        {
            return db.Sections.SingleOrDefault(s => s.Id == id);
        }

        public IEnumerable<Section> GetSectionBySpecificationId(int specificationId)
        {

            throw new NotImplementedException();
        }

        public void UpdateSection(Section section)
        {

        }

        public void UpdateSections(IEnumerable<Section> sections)
        {

        }

        public void AddSection(Section section)
        {
           
        }

        public void DeleteSection(int id)
        {

        }
    }
}